# 作业1
result1 = 0
num = 1
while num <= 100:
    if num % 2 == 0:
        result1 += num
    num = num + 1
print(result1)
# 作业2
import random

comcuter = random.randint(1, 10)
while "猜测的结果小了" or "猜测的结果大了":
    num = int(input("请输入您所猜测的数字"))
    if num < comcuter:
        print("猜测的结果小了")
    elif num > comcuter:
        print("猜测的结果大了")
    else:
        print("猜测结果正确")
        break
# 作业3
result2 = 0
for i in range(1, 101):
    if i % 2 == 1:
        result2 += i
print(result2)
# 作业4
result3 = 0
for ic in "abaaeeaddaoaoea":
    print(ic)
    if ic == "a":
        result3 += 1
print("a出现了", result3, "次")
# 账号输入
user = input("请设置您的用户名")
psd = input("请设置您的密码")
for i in range(1, 2):
    u = input("请输入您的用户名")
    p = input("请输入您的密码")
    if u == user and p == psd:
        print("恭喜您登陆成功")
        break
else:
    print("臭傻逼，刚设置的密码都记不住，账号冻结了")
